/*************************************************************************
 * AUTHOR		 : Chris Hayes
 * STUDENT ID	 : 656960
 * ASSIGNMENT #5 : Multi-Dimensional Array - Tic Tac Toe
 * CLASS		 : CS1B
 * SECTION		 : MW12:30
 * DUE DATE		 : June 15, 2011
 *************************************************************************/

#include "tictacheader.h"

/**************************************************************************
* FUNCTION SwitchPlayers
*__________________________________________________________________________
* This function switches token from X to O or O to X.
*__________________________________________________________________________
* PRE-CONDITIONS
*  token	: Token should be previously defined	- VALUE
*
* POST-CONDITIONS
*   RETURNS: the opposite of what was passed in
**************************************************************************/

char SwitchToken(char token)
{
	//if X is passed in then set to O.  Otherwise, O is going to be passed
	//	in so set to X
	if(token == 'X')
	{
		token = 'O';
	}
	else
	{
		token = 'X';
	}

	return token;
}
